package org.jet.emall.prod.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_cart_item")
@ApiModel(value="OrderCartItem对象", description="购物车表")
public class OrderCartItem implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "购物车ID")
    private Long cartId;

    @ApiModelProperty(value = "商品sku的ID")
    private Long skuId;

    @ApiModelProperty(value = "加入购物车的商品数量")
    private Integer count;

    @ApiModelProperty(value = "购物项选中状态: 1-选中,0-未选中")
    private Byte selected;

    @ApiModelProperty(value = "最后修改时间")
    private LocalDateTime modifiedTime;


}
